package ext;

import com.jfinal.config.Handlers;
import com.jfinal.handler.Handler;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * Created with IntelliJ IDEA.
 * User: Administrator
 * Date: 14-7-30
 * Time: 下午7:14
 * To change this template use File | Settings | File Templates.
 */
public class ContentHandlers extends Handler {

    @Override
    public void handle(String s, HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse, boolean[] booleans) {
        //To change body of implemented methods use File | Settings | File Templates.
        httpServletRequest.setAttribute("ctx",httpServletRequest.getContextPath());
        nextHandler.handle(s,httpServletRequest,httpServletResponse,booleans);
    }
}
